package com.hzeport.bgs22emduty.inbound.lsapi;

import com.hzeport.bgs22emduty.config.systemLog.OperLog;
import com.hzeport.bgs22emduty.dto.ScreenMessageReadDTO;
import com.hzeport.bgs22emduty.outbound.ScreenMessageRepository;
import com.hzeport.bgs22emduty.vo.ls.ScreenDutyMessageSaveVO;
import com.hzeport.bgs22emduty.common.base.BaseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * @author zhangyangyang
 * @description
 * @date 2023/9/21 11:18
 */
@RestController
@AllArgsConstructor
@RequestMapping("/screenmessagels")
@Api(value = "screenmessagels", tags = "值班短信息管理ls")
@Slf4j
@CrossOrigin
public class ScreenMessageLSController {

    @Resource
    private ScreenMessageRepository screenMessageRepository;

    @ApiOperation(value = "已读")
    @RequestMapping(value = "hasRead",method = RequestMethod.POST)
    @OperLog(systemName = "ZBDX",description = "XXXZ")
    public BaseResult savels( @RequestBody ScreenMessageReadDTO screenDutyMessageSaveVO, HttpServletRequest request ) {
        return screenMessageRepository.savels(screenDutyMessageSaveVO,request);
    }
}
